<?php require_once('../../core/import.php');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
<!--    <script type="text/javascript" src="scripts/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="scripts/jquery.plugins/province_city.js"></script>
    <script type="text/javascript" src="scripts/register_step_second.js"></script>-->
    <script type="text/javascript" src="../../scripts/import.js"></script>
</head>

<body>
    <form id="Form1" name="Form1" method="post" action="edit.action.php" class="Form" enctype="multipart/form-data">
        <?php
	 	#赋值检测
  		if(!is_numeric($ID=Functions::UrlArgs('id'))) exit('信息ID不正确');
    
 	 	#获取数据
	 	$Rows=DB::GetRowByID('account',$ID);
	 ?> 
        <fieldset>
            <legend>会员修改</legend>
            <table width="100%" cellpadding="1" cellspacing="0">
            <tr>
                <td width="150" height="25" align="left">用户名：</td>
                <td width="889" colspan="2">
  			   <?php echo $Rows['Username'];?>
                </td>
            </tr>
            </table>
        </fieldset>
	  <fieldset>
            <legend>基本信息</legend>
            <table width="100%" cellpadding="1" cellspacing="0">
            <tr>
                <td width="150" height="25" align="left">公司名称：</td>
                <td width="285">
                    <?php echo $Rows['CompanyName'];?>
                </td>
                <td width="150" height="25" align="left">经营模式：</td>
                <td width="450" >
                    <?php if($Rows['Model']=='PRODUCTION'){ echo '生产加工' ;}?>
                    <?php if($Rows['Model']=='WHOLESALE'){ echo '经销批发' ;}?>
                    <?php if($Rows['Model']=='BUSINESS'){ echo '招商代理' ;}?>
                    <?php if($Rows['Model']=='SERVICE'){ echo '商业服务' ;}?>
                </td>
            </tr>
            <tr>
                <td width="150" height="25" align="left">注册资本：</td>
                <td >
                    <?php echo $Rows['RegisterdCapital'];?>
                </td>
                <td width="150" height="25" align="left">成立时间：</td>
                <td width="450" >
                    <?php echo $Rows['EstablishedTime'];?>
                </td>
            </tr>
            <tr>
                <td width="150" height="25" align="left">主营行业：</td>
                <td>
                    <?php echo $Rows['Trade'];?>
                </td>
                <td width="150" height="25" align="left">合作伙伴：</td>
                <td width="450">
                    <?php echo $Rows['Partner'];?>
                </td>
            </tr>
            <tr>
                <td width="150" height="25" align="left">主营产品：</td>
                <td>
                    <?php echo $Rows['Product'];?>
                </td>
                <td width="150" height="25" align="left">省、市：</td>
                <td width="450"> 
                    <?php echo $Rows['Province'];?> 省
                    <?php echo $Rows['City'];?>市
<!--                        <select name="Province" class="input105 select" id="Province" >
                                <option  selected="selected">选择省份</option>
                            </select><select name="City" class="input105 ml8 select" id="City" >
                                <option  selected="selected">选择城市</option>
                            </select>-->
                </td>
            </tr>
            <tr>
                <td width="150" height="25" align="left">公司地址：</td>
                <td>
                    <?php echo $Rows['Address'];?>
                </td>
                <td width="150" height="25" align="left">联系人：</td>
                <td width="450">
                    <?php echo $Rows['Linkman'];?>
                </td>
            </tr>
            <tr>
                <td width="150" height="25" align="left">性别：</td>
                <td>
                    <?php echo $Rows['Sex'];?>
                </td>
                <td width="150" height="25" align="left">部门：</td>
                <td width="450">
                    <?php echo $Rows['Department'];?>
                </td>
            </tr>
            <tr>
                <td width="150" height="25" align="left">职位：</td>
                <td>
                    <?php echo $Rows['Position'];?>
                </td>
                <td width="150" height="25" align="left">网站URL：</td>
                <td width="450">
                    <?php echo $Rows['URL'];?>
                </td>
            </tr>
            <tr>
                <td width="150" height="25" align="left">联系电话：</td>
                <td>
                    <?php echo $Rows['Phone'];?>
                </td>
                <td width="150" height="25" align="left">传真：</td>
                <td width="450">
                    <?php echo $Rows['Fax'];?>
                </td>
            </tr>
            <tr>
                <td width="150" height="25" align="left">移动电话：</td>
                <td>
                    <?php echo $Rows['MSISDN'];?>
                </td>
                <td width="150" height="25" align="left">QQ：</td>
                <td width="450">
                    <?php echo $Rows['QQ'];?>
                </td>
            </tr>
            <tr>
                <td width="150" height="25" align="left">MSN：</td>
                <td>
                   <?php echo $Rows['MSN'];?>
                </td>
                <td height="25" align="left" valign="middle">公司LOGO：</td>
                <td>
			 <?php echo $Rows['Logo'];?>
                </td>
            </tr>
            
            <tr>
                <td width="150" height="25" align="left">公司简介：</td>
                <td colspan="3">
                   <?php echo $Rows['Intro'];?>
                </td>
            </tr>
      	
               </table>
        </fieldset>
        <fieldset>
            <legend>会员状态</legend>
            <table width="100%" cellpadding="1" cellspacing="0">
             <tr>
                <td width="150" height="25" align="left">邮件验证：</td>
                <td width="889">
                <?php	
			$data_email=DB::GetRows('select Account from `account_email_verification` where Account=\''.$Rows['Username'].'\'');
			$data_locked=DB::GetRows('select Account from `account_locked` where Account=\''.$Rows['Username'].'\'');
			$data_vip=DB::GetRows('select Account from `account_vip` where Account=\''.$Rows['Username'].'\'');
			$data_integrity=DB::GetRows('select Account from `account_integrity` where Account=\''.$Rows['Username'].'\'');
                ?>
                   <?php if(count($data_email)>0){ echo '是' ;}?>
	  		 <?php if(count($data_email)==0){ echo '否' ;}?> 
                </td>
            </tr>
            <tr>
                <td width="150" height="25" align="left">锁定：</td>
                <td width="889">
                   <?php if(count($data_locked)>0){ echo '是' ;}?>
	  		 <?php if(count($data_locked)==0){ echo '否' ;}?>
                </td>
            </tr>
             <tr>
                <td width="150" height="25" align="left">VIP：</td>
                <td width="889">
                   <?php if(count($data_vip)>0){ echo '是' ;}?>
	  		 <?php if(count($data_vip)==0){ echo '否' ;}?>
                </td>
            </tr>
             <tr>
                <td width="150" height="25" align="left">诚信供应商：</td>
                <td width="889">
                   <?php if(count($data_integrity)>0){ echo '是' ;}?>
	  		 <?php if(count($data_integrity)==0){ echo '否' ;}?>
                </td>
            </tr>
             <tr>
                <td width="150" height="25" align="left">置顶：</td>
                <td width="889">
                   <?php if($Rows['M_IsTop']==1){ echo '是' ;}?>
	  		 <?php if($Rows['M_IsTop']==0){ echo '否' ;}?>
                </td>
            </tr>
               </table>
        </fieldset>
		 <input  type="button" onclick="history.go(-1);" value="返回" class="button" />

    </form>
</body>
</html>